

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  <meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>cephfs-top -- Ceph 文件系统热点工具 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/custom.css" type="text/css" />

  
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/jquery.js"></script>
        <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script>
        <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/doctools.js"></script>
        <script src="../../../_static/sphinx_highlight.js"></script>
    
    <script type="text/javascript" src="../../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../../genindex/" />
    <link rel="search" title="Search" href="../../../search/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    <div role="navigation" aria-label="Page navigation">
  <ul class="wy-breadcrumbs">
      <li><a href="../../../" class="icon icon-home" aria-label="Home"></a></li>
      <li class="breadcrumb-item active">cephfs-top -- Ceph 文件系统热点工具</li>
      <li class="wy-breadcrumbs-aside">
            <a href="../../../_sources/man/8/cephfs-top.rst.txt" rel="nofollow"> View page source</a>
      </li>
  </ul>
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../../" class="icon icon-home"> Ceph
          

          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul>
<li class="toctree-l1"><a class="reference internal" href="../../../start/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../monitoring/">监控概览</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../hardware-monitoring/">硬件监控</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <section id="cephfs-top-ceph">
<h1>cephfs-top -- Ceph 文件系统热点工具<a class="headerlink" href="#cephfs-top-ceph" title="Permalink to this heading"></a></h1>
<section id="id1">
<h2>提纲<a class="headerlink" href="#id1" title="Permalink to this heading"></a></h2>
<div class="line-block">
<div class="line"><strong>cephfs-top</strong> [flags]</div>
</div>
</section>
<section id="id2">
<h2>描述<a class="headerlink" href="#id2" title="Permalink to this heading"></a></h2>
<p><strong>cephfs-top</strong> 为 Ceph 文件系统提供了 top(1) 风格的功能。
可以显示各种客户端指标并实时更新。</p>
<p>Ceph 元数据服务器周期性地向 Ceph 管理器发送客户端指标。
Ceph 管理器的 <code class="docutils literal notranslate"><span class="pre">Stats</span></code> 插件有接口获取这些指标。</p>
</section>
<section id="id3">
<h2>选项<a class="headerlink" href="#id3" title="Permalink to this heading"></a></h2>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-cephfs-top-cluster">
<span class="sig-name descname"><span class="pre">--cluster</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cephfs-top-cluster" title="Permalink to this definition"></a></dt>
<dd><p>集群：要连接的 Ceph 集群，默认是 <code class="docutils literal notranslate"><span class="pre">ceph</span></code> 。</p>
</dd></dl>

<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-cephfs-top-id">
<span class="sig-name descname"><span class="pre">--id</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cephfs-top-id" title="Permalink to this definition"></a></dt>
<dd><p>Id: 用于连接 Ceph 集群的客户端，默认是 <code class="docutils literal notranslate"><span class="pre">fstop</span></code> 。</p>
</dd></dl>

<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-cephfs-top-selftest">
<span class="sig-name descname"><span class="pre">--selftest</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cephfs-top-selftest" title="Permalink to this definition"></a></dt>
<dd><p>执行一次自检。这个模式对 <code class="docutils literal notranslate"><span class="pre">stats</span></code> 模块执行一次健全性检查。</p>
</dd></dl>

<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-cephfs-top-conffile">
<span class="sig-name descname"><span class="pre">--conffile</span></span><span class="sig-prename descclassname"> <span class="pre">[CONFFILE]</span></span><a class="headerlink" href="#cmdoption-cephfs-top-conffile" title="Permalink to this definition"></a></dt>
<dd><p>集群配置文件的路径</p>
</dd></dl>

<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-cephfs-top-d">
<span id="cmdoption-cephfs-top-delay"></span><span class="sig-name descname"><span class="pre">-d</span></span><span class="sig-prename descclassname"> <span class="pre">[DELAY]</span></span><span class="sig-prename descclassname"><span class="pre">,</span> </span><span class="sig-name descname"><span class="pre">--delay</span></span><span class="sig-prename descclassname"> <span class="pre">[DELAY]</span></span><a class="headerlink" href="#cmdoption-cephfs-top-d" title="Permalink to this definition"></a></dt>
<dd><p>刷新间隔秒数（默认： 1 ）</p>
</dd></dl>

<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-cephfs-top-dump">
<span class="sig-name descname"><span class="pre">--dump</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-cephfs-top-dump" title="Permalink to this definition"></a></dt>
<dd><p>把指标都转储到 stdout</p>
</dd></dl>

<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-cephfs-top-dumpfs">
<span class="sig-name descname"><span class="pre">--dumpfs</span></span><span class="sig-prename descclassname"> <span class="pre">&lt;fs_name&gt;</span></span><a class="headerlink" href="#cmdoption-cephfs-top-dumpfs" title="Permalink to this definition"></a></dt>
<dd><p>把指定文件系统的指标都转储到 stdout</p>
</dd></dl>

</section>
<section id="id4">
<h2>字段描述<a class="headerlink" href="#id4" title="Permalink to this heading"></a></h2>
<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">chit</span></span></dt>
<dd><p>cap hit rate</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">dlease</span></span></dt>
<dd><p>dentry lease rate</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">ofiles</span></span></dt>
<dd><p>已打开文件的数量</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">oicaps</span></span></dt>
<dd><p>number of pinned caps</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">oinodes</span></span></dt>
<dd><p>打开的 inode 数量</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">rtio</span></span></dt>
<dd><p>读 IO 的总量</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">wtio</span></span></dt>
<dd><p>写 IO 的总量</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">raio</span></span></dt>
<dd><p>读 IO 的平均尺寸</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">waio</span></span></dt>
<dd><p>写 IO 的平均尺寸</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">rsp</span></span></dt>
<dd><p>与上次刷新相比的读 IO 速度</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">wsp</span></span></dt>
<dd><p>与上次刷新相比的写 IO 速度</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">rlatavg</span></span></dt>
<dd><p>平均读延时</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">rlatsd</span></span></dt>
<dd><p>读取延时的标准偏差（方差）</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">wlatavg</span></span></dt>
<dd><p>平均写延时</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">wlatsd</span></span></dt>
<dd><p>写入延时的标准偏差（方差）</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">mlatavg</span></span></dt>
<dd><p>平均元数据延时</p>
</dd></dl>

<dl class="describe">
<dt class="sig sig-object">
<span class="sig-name descname"><span class="pre">mlatsd</span></span></dt>
<dd><p>元数据延时的标准偏差（方差）</p>
</dd></dl>

</section>
<section id="id5">
<h2>使用范围<a class="headerlink" href="#id5" title="Permalink to this heading"></a></h2>
<p><strong>cephfs-top</strong> 是 Ceph 的一部分，这是个伸缩力强、开源、
分布式的存储系统，更多信息参见 <a class="reference external" href="https://ceph.com/">https://ceph.com/</a> 。</p>
</section>
<section id="id6">
<h2>参考<a class="headerlink" href="#id6" title="Permalink to this heading"></a></h2>
<p><a class="reference internal" href="../ceph/"><span class="doc">ceph</span></a>(8),
<a class="reference internal" href="../ceph-mds/"><span class="doc">ceph-mds</span></a>(8)</p>
</section>
</section>



<div id="support-the-ceph-foundation" class="admonition note">
  <p class="first admonition-title">Brought to you by the Ceph Foundation</p>
  <p class="last">The Ceph Documentation is a community resource funded and hosted by the non-profit <a href="https://ceph.io/en/foundation/">Ceph Foundation</a>. If you would like to support this and our other efforts, please consider <a href="https://ceph.io/en/foundation/join/">joining now</a>.</p>
</div>


           </div>
           
          </div>
          <footer>

  <hr/>

  <div role="contentinfo">
    <p>&#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).</p>
  </div>

   

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>